 <?php if($ventas->esCondicional()): ?>
  <ul class="sf_admin_td_actions"> 
    <?php echo link_to('Realizar Venta', 'ventas/edit?vta_id='.$ventas->getVtaId()); ?> 
  </ul>
<?php endif; ?>
  <ul class="sf_admin_td_actions">
    <?php echo link_to('Devolución', 'ventas/devolucion?vta_id='.$ventas->getVtaId()); ?>
  </ul>
  <ul class="sf_admin_td_actions">
    <?php echo link_to('Ver Detalle', 'ventas/verDetalle?vta_id='.$ventas->getVtaId(),array('class'=>'example7')); ?>
  </ul>

	<script type="text/javascript">
		jQuery(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements
			jQuery(".example7").colorbox({
                            width:"80%",
                            height:"80%",
                            iframe:false,
                            close: "Cerrar",
                            //title: "Venta Nº <?php echo $ventas->getVtaNroFactura() ?>"
                        });

			//Example of preserving a JavaScript event for inline calls.
			//$("#click").click(function(){
			//	$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
			//	return false;
			//});
		});
	</script>